package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2022-10-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 商品
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    private String goodsType;

    private Integer goodsPrice;

    private Integer goodsNums;

    @JsonFormat(pattern = "yyyy-MM-dd")
    //从前端传来的日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date goodsJoinTime;

    /**
     * 入库人
     */
    private String goodsUserName;

    /**
     * 供货商
     */
    private String goodsSuppliersName;

    private String goodsName;

    @TableField(exist = false)
    private String storageType;

    @TableField(exist = false)
    private Integer page;

    @TableField(exist = false)
    private Integer row;

    @TableField(exist = false)
    private Integer goodsBuyNum;

}
